BWF_Pelago\Emogrifier D

Total Complexity 205
Dependencies 8
Dependents 0
Total lines 2,048
Lines of code 827
Logical lines of code 425
Comment lines 866
Methods 80
Properties 16

Methods 80

Method Rating Maintainability Complexity Lines of code
process()
A
47 8 37
parseCssRules()
A
46 8 37
parseNth()
A
49 8 29
generateStyleStringFromDeclarationsArrays()
S
51 7 27
splitCssAndMediaQuery()
S
46 5 39
handleXpathQueryWarnings()
S
53 6 23
mapComplexCssProperty()
S
57 6 18
removeUnprocessableTags()
S
60 6 14
mapSimpleCssProperty()
S
59 6 13
copyUninlineableCssToStyleNode()
S
53 5 23
getNodesToExclude()
S
57 5 17
removeInvisibleNodes()
S
60 5 13
addContentTypeMetaTag()
S
55 4 20
parseCssDeclarationsBlock()
S
56 4 18
getCssSelectorPrecedence()
S
56 4 16
translateCssToXpath()
S
50 3 29
existsMatchForCssSelector()
S
62 4 11
translateNthChild()
S
54 3 24
translateNthOfType()
S
54 3 24
removeImportantAnnotationFromNodeInlineStyle()
S
55 3 20
mapMarginProperty()
S
64 4 9
mapBorderProperty()
S
66 4 8
parseCssShorthandValue()
S
63 4 9
getCssRuleMatches()
S
58 3 15
sortBySelectorPrecedence()
S
66 4 7
getCssFromAllStyleNodes()
S
62 3 12
setHtml()
S
65 3 9
postProcess()
S
69 3 8
mapBackgroundProperty()
S
67 3 7
normalizeStyleAttributesOfAllNodes()
S
67 3 8
normalizeStyleAttributes()
S
59 2 15
fillStyleAttributesWithMergedStyles()
S
61 2 13
copyInlineableCssToStyleAttribute()
S
62 2 12
translateCssToXpathPassWithMatchClassAttributesCallback()
S
54 1 24
__construct()
S
71 2 6
assertExistenceOfHtml()
S
72 2 5
mapAllInlineStylesToHtmlAttributes()
S
70 2 6
removeImportantAnnotationFromAllInlineStyles()
S
74 2 5
mapCssToHtmlAttributes()
S
69 2 6
mapCssToHtmlAttribute()
S
72 2 5
mapWidthOrHeightProperty()
S
69 2 6
isTableOrImageNode()
S
79 2 3
removeUnprocessableHtmlTag()
S
70 2 6
removeAllowedMediaType()
S
73 2 5
removeExcludedSelector()
S
73 2 5
ensureExistenceOfBodyElement()
S
68 2 7
ensureDocumentType()
S
68 2 7
matchIdAttributes()
S
76 2 3
matchClassAttributes()
S
76 2 3
getDomDocument()
S
82 1 3
setCss()
S
81 1 3
render()
S
76 1 4
renderBodyContent()
S
71 1 5
removeSelfClosingTagsClosingTags()
S
77 1 3
getBodyElement()
S
80 1 3
getHeadElement()
S
80 1 3
emogrify()
S
74 1 5
emogrifyBodyContent()
S
74 1 5
createUnifiedDomDocument()
S
77 1 4
createRawDomDocument()
S
64 1 10
prepareHtmlForDomConversion()
S
73 1 5
getAllNodesWithStyleAttribute()
S
80 1 3
disableInlineStyleAttributesParsing()
S
81 1 3
disableStyleBlocksParsing()
S
81 1 3
disableInvisibleNodeRemoval()
S
81 1 3
enableCssToHtmlMapping()
S
81 1 3
clearAllCaches()
S
68 1 9
purgeVisitedNodes()
S
77 1 4
addUnprocessableHtmlTag()
S
80 1 3
addAllowedMediaType()
S
80 1 3
addExcludedSelector()
S
80 1 3
generateStyleStringFromSingleDeclarationsArray()
S
79 1 3
attributeValueIsImportant()
S
77 1 3
removeUnmatchablePseudoComponents()
S
66 1 8
addStyleElementToDocument()
S
66 1 8
ensurePhpUnrecognizedSelfClosingTagsAreXml()
S
69 1 7
translateCssToXpathPass()
S
72 1 6
translateCssToXpathPassInline()
S
72 1 6
matchClassAttributesInline()
S
68 1 7
setDebug()
S
81 1 3